<?php defined('ROOT_DIR') or die('Access denied!');?>
<!DOCTYPE HTML>
<html>
<head>
	<meta http-equiv="content-type" content="text/html" />
	<meta name="author" content="暮雨秋晨" />
	<meta charset="UTF-8" />
    <meta http-equiv="Cache-Control" content="no-cache" />
    <meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1" />
    <meta name="description" content="<?php echo $config['desc'];?>" />
    <meta name="keywords" content="<?php echo $config['keywd'];?>" />
	<title><?php echo $title;?></title>
    <link rel="stylesheet" href="/Application/static/css/main.css" />
    <script src="/Application/static/js/common.js"></script>
</head>
<body>
<!-- header -->
<header>
<ul>
<li><a href="/" style="z-index: 50;">首页</a></li>
<li><a style="z-index: 49;cursor: pointer;">会员中心</a></li>
</ul>
</header>

<div id="main">

<?php if($user_info):?>

<div id="subtitle">个人资料</div>
<div id="box">
<p style="font-size: 1.5em;margin: 6px 1em;"><?php if(checkVip($user_info['vip'])):?>
<img src="/Application/static/pic/vip.png" alt="VIP" title="VIP" />
<?php endif;?><?php echo $user_info['user'];?><span style="font-size: 12px;color: red;margin-left: 3px;letter-spacing: 1px;vertical-align: top;">
(<?php echo $user_info['id'];?>)</span></p>
<p style="margin: 2px;">签名：<span><?php echo $user_info['signature'];?></span></p>
<p style="margin: 2px;">Tel：<span><?php echo $user_info['tell'];?></span></p>
<p style="margin: 2px;">QQ：<span><?php echo $user_info['qq'];?></span></p>
<p style="margin: 2px;">Email：<span><?php echo $user_info['email'];?></span></p>
<p style="margin: 2px;">话题：<span><?php echo $user_info['topic_total'];?></span>个</p>
<p style="margin: 2px;">注册时间：<span><?php echo dateFormat($user_info['rtime']);?></span></p>
<p style="margin: 2px;">上次登录：<span><?php echo dateFormat($user_info['logintime']);?></span></p>
<p style="margin: 2px;">权限等级：<span><?php echo $user_info['authlv'];?></span></p>
<?php if(checkVip($user_info['vip'])):?>
<p style="margin: 2px;">VIP状态：<span>开启中</span></p>
<p style="margin: 2px;">到期时间：<span style="color: red;"><?php echo date('Y-m-d H:i:s',$user_info['vip']);?></span></p>
<?php else:?>
<p style="margin: 2px;">VIP状态：<span>已关闭</span></p>
<?php endif;?>
<p style="margin: 2px;">金币：<span><?php echo $user_info['money'];?></span></p>
</div>
<?php if($user_info['id']==$login_user['id']):?>
<div id="subtitle">功能支持</div>
<div id="box">
<ul id="list">
<li><a href="<?php echo $this->urlCreate('shop','vip');?>">购买VIP</a></li>

</ul>
</div>
<?php endif;?>

<div id="subtitle">操作选项</div>
<div id="box">
<?php if($user_info['id']==$login_user['id']):?>
<ul id="list">
<li><a href="<?php echo $this->urlCreate('change','signature');?>">修改签名</a></li>
<li><a href="<?php echo $this->urlCreate('change','infomation');?>">修改资料</a></li>
<li><a href="<?php echo $this->urlCreate('change','passwd');?>">修改密码</a></li>
<li><a href="<?php echo $this->urlCreate('user','logout');?>">退出网站</a></li>
</ul>

<?php else:?>
<ul id="list">
<li><a href="<?php echo $this->urlCreate('friend','make');?>">加好友</a></li>
<li><a href="<?php echo $this->urlCreate('focus','make');?>">关注Ta</a></li>
<li><a href="<?php echo $this->urlCreate('message','send');?>">发送消息</a></li>
</ul>



<?php endif;?>
</div>
<?php else:?>
<div id="tip">该会员不存在</div>
<?php endif;?>
</div>

<footer>
&copy;<a href="http://www.doubear.com">Doubear</a> Driven by <a href="http://www.domvc.com">DoMVC</a> framework
</footer>
</body>
</html>